<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id (主键)
 * @property integer $mall_id 
 * @property string $pic_url 图片
 * @property string $title 标题
 * @property string $page_url 页面路径
 * @property string $open_type 打开方式
 * @property string $params 导航参数
 * @property integer $is_delete 
 * @property mixed $created_at 创建时间
 * @property string $sign 插件标识
 */
class TejianBanner extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'tejian_banner';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    //获取关于我们
    public function getbanner()
    {
        return $this->where('is_delete', '=',0)->orderBy('id', 'desc')->get();
    }

    
    
}
